import request from '@utils/request'

export default class Join {
  //获取招聘职位类型或岗位类型
  async getTypes(data) {
    return request({
      url: '/management-server/dict/getSysDictList',
      method: 'post',
      data
    })
  }

  //获取列表
  async getLists(data) {
    return request({
      url: '/management-server/jobs/getJobsPage',
      method: 'post',
      data
    })
  }

  //添加职位
  async add(data) {
    return request({
      url: '/management-server/jobs/insertJobs',
      method: 'post',
      data
    })
  }

  //编辑职位
  async edit(data) {
    return request({
      url: '/management-server/jobs/updateJobs',
      method: 'post',
      data
    })
  }

  //删除职位
  async del(data) {
    return request({
      url: '/management-server/jobs/deleteJobs',
      method: 'post',
      data
    })
  }
}
